package com.xzy.seckill.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xzy.seckill.pojo.entity.Goods;
import com.xzy.seckill.mapper.GoodsMapper;
import com.xzy.seckill.pojo.vo.GoodListVO;
import com.xzy.seckill.service.GoodsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xzy
 * @since 2022-01-27
 */
@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements GoodsService {

    @Override
    public IPage<GoodListVO> list(Page<GoodListVO> page) {


        return baseMapper.selectPage(page);
    }
}
